import { axios } from '@/utils/request'
// 规格 商品信息
export const queryGoodInfoById = (params) => {
  return axios({
    url: '/bms/udiInfo/queryUdi',
    method:'get',
    params
  })
}

// 获取仓库中商品列表
export const queryGoodList = (params) => {
  return axios({
    url: '/wms/wmsProduct/queryCanOutInfo',
    method:'get',
    params
  })
}

// 根据id获取仓库中的商品
export const queryGoodById = (params) => {
  return axios({
    url: '/bms/bmsMaterial/queryById',
    method:'get',
    params
  })
}

// 扫码绑定出库商品
export const scanBindGood = (data) => {
  return axios({
    url: '/wms/wmsOutOrderSpec/bindOrderDetail',
    method:'post',
    data
  })
}

// 扫码通过id 查询库内商品
export const queryGoodByScanId = (params) => {
  return axios({
    url: '/wms/wmsProduct/queryByUdi',
    method:'get',
    params
  })
}

// 获取商品轨迹
export const queryGoodTrack = (params) => {
  return axios({
    url: '/wms/wmsLog/queryProductByNo',
    method:'get',
    params
  })
}

// 产品基本信息单位
export const queryProductInfoUnitApi = (params) => {
  console.log(params);
  return axios({
    url: '/bms/bmsProductInfoUnit/list',
    method:'get',
    params
  })
}
export const queryProductInfoProductApi = (params) => {
  return axios({
    url: '/bms/bmsProductAttributes/list',
    method:'get',
    params
  })
}
export const queryProductPinCodeApi = (params) => {
    return axios({
    url: '/bms/bmsProductInfo/queryByZxxsdycpbsExist',
    method:'get',
    params
  })
}

export const queryContainerTypeApi = (params) => {
  return axios({
  url: '/bms/Common/getContainerType',
  method:'get',
  params
})
}

